package cn.jr.service.impl;

import cn.jr.dao.IUserDao;
import cn.jr.dao.impl.UserDaoImpl;
import cn.jr.pojo.ShopRun;
import cn.jr.service.IUserService;

public class UserServiceImpl implements IUserService {
    IUserDao iud = new UserDaoImpl();
    @Override
    public boolean addUser(ShopRun shop) {
        return iud.insertUser(shop)>0?true:false;
    }

    @Override
    public ShopRun queryUserByUserName(String userName) {
        return iud.selectUserByUserName(userName);
    }

    @Override
    public String queryPassByUserId(String userId) {
        return iud.selectPassByUserId(userId);
    }
}
